const http = uni.$u.http

const api = {
	wechat: '/api/miniapp/wechat.php',
	event_list:  '/api/miniapp/user.php?act=event_list',
	order_refund:'/api/miniapp/order/order_refund.php',
	add:         '/api/miniapp/order.php?act=add',
	order_list:  '/api/miniapp/order/order_list.php',
 
}

export const order_list = (params, config) => http.post(api.order_list,params, {
	custom: {
		toast: false
	},
	...config
})

export const order_refund = (params, config) => http.post(api.order_refund,params, {
	custom: {
		toast: false
	},
	...config
})

export const add = (params, config) => http.post(api.add,params, {
	custom: {
		toast: false
	},
	...config
})

 

 

export const wechat = (params, config) => http.get(api.wechat,params, {
	custom: {
		toast: false
	},
	
	...config
})
 